import Layout from '@/views/layout/index.vue'

export default {
    path:'/user',
    component:Layout,
    name:'User',
    redirect:'/user/userList',
    meta: { title: '用户管理', icon:"el-icon-star-on"},
    children:[
        {
            path:'userList',
            component:() => import('@/views/user/user.vue'),
            name:'UserList',
            meta: { title: '用户列表'}
        },
        {
            path:'userAdd',
            component:() => import('@/views/user/userAdd.vue'),
            meta: { title: '添加用户'}
        },
        {
            path:'userEdit',
            component:() => import('@/views/user/userEdit.vue'),
            meta: { title: '用户编辑'}
        }
    ]
}